import request from 'utils/request'
const debug = process.env.NODE_ENV !== 'production'
const IP = 'http://192.168.107.96:8080/dataMgmt'
const testIP = 'http://192.168.0.113:8080/dataMgmt'
export const postRawData = (data) => {
    const url = debug ? `${testIP}/rawData` : `${IP}/rawData`
    return request({
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        method: 'post',
        url: url,
        // timeout: 20000,
        data: data
    })
}
export const postData = (data) => {
    const url = debug ? `${testIP}/preprocessed` : `${IP}/preprocessed`
    return request({
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        method: 'post',
        url: url,
        // timeout: 20000,
        data: data
    })
}